<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.14.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DM-CtrlH7-BF-DevProgram: C:/Users/ASUS/Desktop/dm-ctrlH7-balance-9025test/modules/remote/remote_control.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="50x5.png"/></td>
  <td id="projectalign">
   <div id="projectname">DM-CtrlH7-BF-DevProgram<span id="projectnumber">&#160;beta 0.1</span>
   </div>
   <div id="projectbrief">C.ONE Studio Damiao Development Board Framework</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.14.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search/",'.html');
</script>
<script type="text/javascript">
$(function() { codefold.init(); });
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search',true);
  $(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(function(){initNavTree('remote__control_8h.html','',''); });
</script>
<div id="container">
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">remote_control.h File Reference</div></div>
</div><!--header-->
<div class="contents">

<p>遥控器模块定义头文件  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;stdint.h&gt;</code><br />
<code>#include &quot;<a class="el" href="main_8h_source.html">main.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="usart_8h_source.html">usart.h</a>&quot;</code><br />
</div>
<p><a href="remote__control_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 id="header-nested-classes" class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:Key_5Ft" id="r_Key_5Ft"><td class="memItemLeft" align="right" valign="top">union &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="union_key__t.html">Key_t</a></td></tr>
<tr class="memitem:RC_5Fctrl_5Ft" id="r_RC_5Fctrl_5Ft"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_r_c__ctrl__t.html">RC_ctrl_t</a></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 id="header-define-members" class="groupheader"><a id="define-members" name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a210af1d04c8870416a556f0e9a5194fd" id="r_a210af1d04c8870416a556f0e9a5194fd"><td class="memItemLeft" align="right" valign="top"><a id="a210af1d04c8870416a556f0e9a5194fd" name="a210af1d04c8870416a556f0e9a5194fd"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>LAST</b>&#160;&#160;&#160;1</td></tr>
<tr class="memitem:a10bed19ceedeb2c12c5aad6de1d3b1a1" id="r_a10bed19ceedeb2c12c5aad6de1d3b1a1"><td class="memItemLeft" align="right" valign="top"><a id="a10bed19ceedeb2c12c5aad6de1d3b1a1" name="a10bed19ceedeb2c12c5aad6de1d3b1a1"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>TEMP</b>&#160;&#160;&#160;0</td></tr>
<tr class="memitem:a1f701b69c55bf40943c5a4d5ff53192f" id="r_a1f701b69c55bf40943c5a4d5ff53192f"><td class="memItemLeft" align="right" valign="top"><a id="a1f701b69c55bf40943c5a4d5ff53192f" name="a1f701b69c55bf40943c5a4d5ff53192f"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>KEY_PRESS</b>&#160;&#160;&#160;0</td></tr>
<tr class="memitem:a4c2009f45b1129fcbb7e84614f9c852c" id="r_a4c2009f45b1129fcbb7e84614f9c852c"><td class="memItemLeft" align="right" valign="top"><a id="a4c2009f45b1129fcbb7e84614f9c852c" name="a4c2009f45b1129fcbb7e84614f9c852c"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>KEY_STATE</b>&#160;&#160;&#160;1</td></tr>
<tr class="memitem:a43b68c4a6becdfbdf7e58ca591dc571a" id="r_a43b68c4a6becdfbdf7e58ca591dc571a"><td class="memItemLeft" align="right" valign="top"><a id="a43b68c4a6becdfbdf7e58ca591dc571a" name="a43b68c4a6becdfbdf7e58ca591dc571a"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>KEY_PRESS_WITH_CTRL</b>&#160;&#160;&#160;1</td></tr>
<tr class="memitem:a61514e4fc794bdaad7be1bff200899a7" id="r_a61514e4fc794bdaad7be1bff200899a7"><td class="memItemLeft" align="right" valign="top"><a id="a61514e4fc794bdaad7be1bff200899a7" name="a61514e4fc794bdaad7be1bff200899a7"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>KEY_PRESS_WITH_SHIFT</b>&#160;&#160;&#160;2</td></tr>
<tr class="memitem:a6d8cc96f7dc81b63dff7985195cf4472" id="r_a6d8cc96f7dc81b63dff7985195cf4472"><td class="memItemLeft" align="right" valign="top"><a id="a6d8cc96f7dc81b63dff7985195cf4472" name="a6d8cc96f7dc81b63dff7985195cf4472"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>RC_CH_VALUE_MIN</b>&#160;&#160;&#160;((uint16_t)364)</td></tr>
<tr class="memitem:a0af03ce64676e443225138a51596fae5" id="r_a0af03ce64676e443225138a51596fae5"><td class="memItemLeft" align="right" valign="top"><a id="a0af03ce64676e443225138a51596fae5" name="a0af03ce64676e443225138a51596fae5"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>RC_CH_VALUE_OFFSET</b>&#160;&#160;&#160;((uint16_t)1024)</td></tr>
<tr class="memitem:a1702cd2d4d8393bdc7e340b0e42e585f" id="r_a1702cd2d4d8393bdc7e340b0e42e585f"><td class="memItemLeft" align="right" valign="top"><a id="a1702cd2d4d8393bdc7e340b0e42e585f" name="a1702cd2d4d8393bdc7e340b0e42e585f"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>RC_CH_VALUE_MAX</b>&#160;&#160;&#160;((uint16_t)1684)</td></tr>
<tr class="memitem:a46307affe6d9beb62ff99bdc40e51e87" id="r_a46307affe6d9beb62ff99bdc40e51e87"><td class="memItemLeft" align="right" valign="top"><a id="a46307affe6d9beb62ff99bdc40e51e87" name="a46307affe6d9beb62ff99bdc40e51e87"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>RC_SW_UP</b>&#160;&#160;&#160;((uint16_t)1)</td></tr>
<tr class="memitem:a0ff9de2513487653ae3352abb3ffd197" id="r_a0ff9de2513487653ae3352abb3ffd197"><td class="memItemLeft" align="right" valign="top"><a id="a0ff9de2513487653ae3352abb3ffd197" name="a0ff9de2513487653ae3352abb3ffd197"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>RC_SW_MID</b>&#160;&#160;&#160;((uint16_t)3)</td></tr>
<tr class="memitem:a588383ae82bd06145cfe01a7414c03fd" id="r_a588383ae82bd06145cfe01a7414c03fd"><td class="memItemLeft" align="right" valign="top"><a id="a588383ae82bd06145cfe01a7414c03fd" name="a588383ae82bd06145cfe01a7414c03fd"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>RC_SW_DOWN</b>&#160;&#160;&#160;((uint16_t)2)</td></tr>
<tr class="memitem:a0c177888ad36ad913ccc7ae75bf00d6a" id="r_a0c177888ad36ad913ccc7ae75bf00d6a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0c177888ad36ad913ccc7ae75bf00d6a">switch_is_down</a>(s)</td></tr>
<tr class="memitem:aa46da519169b1d7b4bd35d61811cd7e4" id="r_aa46da519169b1d7b4bd35d61811cd7e4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa46da519169b1d7b4bd35d61811cd7e4">switch_is_mid</a>(s)</td></tr>
<tr class="memitem:abae573966e94400154a74415acb93b57" id="r_abae573966e94400154a74415acb93b57"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abae573966e94400154a74415acb93b57">switch_is_up</a>(s)</td></tr>
<tr class="memitem:a40dfc9cfb345cecb45a049eb1f852374" id="r_a40dfc9cfb345cecb45a049eb1f852374"><td class="memItemLeft" align="right" valign="top"><a id="a40dfc9cfb345cecb45a049eb1f852374" name="a40dfc9cfb345cecb45a049eb1f852374"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>Key_W</b>&#160;&#160;&#160;0</td></tr>
<tr class="memitem:a23ff76e78cba346acb0d295b25f1bb66" id="r_a23ff76e78cba346acb0d295b25f1bb66"><td class="memItemLeft" align="right" valign="top"><a id="a23ff76e78cba346acb0d295b25f1bb66" name="a23ff76e78cba346acb0d295b25f1bb66"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>Key_S</b>&#160;&#160;&#160;1</td></tr>
<tr class="memitem:a71ce85b9e0e02c176f138ac8862e7cd4" id="r_a71ce85b9e0e02c176f138ac8862e7cd4"><td class="memItemLeft" align="right" valign="top"><a id="a71ce85b9e0e02c176f138ac8862e7cd4" name="a71ce85b9e0e02c176f138ac8862e7cd4"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>Key_D</b>&#160;&#160;&#160;2</td></tr>
<tr class="memitem:a24d9affbcdf64e83be05a38c5998bc69" id="r_a24d9affbcdf64e83be05a38c5998bc69"><td class="memItemLeft" align="right" valign="top"><a id="a24d9affbcdf64e83be05a38c5998bc69" name="a24d9affbcdf64e83be05a38c5998bc69"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>Key_A</b>&#160;&#160;&#160;3</td></tr>
<tr class="memitem:ac5fc36ebc44e84c868fa2be0c1a0a93c" id="r_ac5fc36ebc44e84c868fa2be0c1a0a93c"><td class="memItemLeft" align="right" valign="top"><a id="ac5fc36ebc44e84c868fa2be0c1a0a93c" name="ac5fc36ebc44e84c868fa2be0c1a0a93c"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>Key_Shift</b>&#160;&#160;&#160;4</td></tr>
<tr class="memitem:a1d5e89147efd49e5b64a828e965753d4" id="r_a1d5e89147efd49e5b64a828e965753d4"><td class="memItemLeft" align="right" valign="top"><a id="a1d5e89147efd49e5b64a828e965753d4" name="a1d5e89147efd49e5b64a828e965753d4"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>Key_Ctrl</b>&#160;&#160;&#160;5</td></tr>
<tr class="memitem:a45594a015694106d485fba97f904bcc9" id="r_a45594a015694106d485fba97f904bcc9"><td class="memItemLeft" align="right" valign="top"><a id="a45594a015694106d485fba97f904bcc9" name="a45594a015694106d485fba97f904bcc9"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>Key_Q</b>&#160;&#160;&#160;6</td></tr>
<tr class="memitem:a3de9e8d945526de4c712999aa81984dd" id="r_a3de9e8d945526de4c712999aa81984dd"><td class="memItemLeft" align="right" valign="top"><a id="a3de9e8d945526de4c712999aa81984dd" name="a3de9e8d945526de4c712999aa81984dd"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>Key_E</b>&#160;&#160;&#160;7</td></tr>
<tr class="memitem:a634f7ddef613cb22c5b84799943ad92f" id="r_a634f7ddef613cb22c5b84799943ad92f"><td class="memItemLeft" align="right" valign="top"><a id="a634f7ddef613cb22c5b84799943ad92f" name="a634f7ddef613cb22c5b84799943ad92f"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>Key_R</b>&#160;&#160;&#160;8</td></tr>
<tr class="memitem:a24bc6030141be487ffb76330d467ee2d" id="r_a24bc6030141be487ffb76330d467ee2d"><td class="memItemLeft" align="right" valign="top"><a id="a24bc6030141be487ffb76330d467ee2d" name="a24bc6030141be487ffb76330d467ee2d"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>Key_F</b>&#160;&#160;&#160;9</td></tr>
<tr class="memitem:aa943cd8ab77d38fa3323b7328d678950" id="r_aa943cd8ab77d38fa3323b7328d678950"><td class="memItemLeft" align="right" valign="top"><a id="aa943cd8ab77d38fa3323b7328d678950" name="aa943cd8ab77d38fa3323b7328d678950"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>Key_G</b>&#160;&#160;&#160;10</td></tr>
<tr class="memitem:a67ddf4f577ecb17bbeeb8273aeda9907" id="r_a67ddf4f577ecb17bbeeb8273aeda9907"><td class="memItemLeft" align="right" valign="top"><a id="a67ddf4f577ecb17bbeeb8273aeda9907" name="a67ddf4f577ecb17bbeeb8273aeda9907"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>Key_Z</b>&#160;&#160;&#160;11</td></tr>
<tr class="memitem:a08d52f3677caa0ddf810b77910d94fd0" id="r_a08d52f3677caa0ddf810b77910d94fd0"><td class="memItemLeft" align="right" valign="top"><a id="a08d52f3677caa0ddf810b77910d94fd0" name="a08d52f3677caa0ddf810b77910d94fd0"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>Key_X</b>&#160;&#160;&#160;12</td></tr>
<tr class="memitem:acc45f6ddd18ef0ec94f767fab27a2778" id="r_acc45f6ddd18ef0ec94f767fab27a2778"><td class="memItemLeft" align="right" valign="top"><a id="acc45f6ddd18ef0ec94f767fab27a2778" name="acc45f6ddd18ef0ec94f767fab27a2778"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>Key_C</b>&#160;&#160;&#160;13</td></tr>
<tr class="memitem:a5436f7a28b9d744e6e1cd52b2c9aa87e" id="r_a5436f7a28b9d744e6e1cd52b2c9aa87e"><td class="memItemLeft" align="right" valign="top"><a id="a5436f7a28b9d744e6e1cd52b2c9aa87e" name="a5436f7a28b9d744e6e1cd52b2c9aa87e"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>Key_V</b>&#160;&#160;&#160;14</td></tr>
<tr class="memitem:aeeddc93e06878d5a0204190833153a8b" id="r_aeeddc93e06878d5a0204190833153a8b"><td class="memItemLeft" align="right" valign="top"><a id="aeeddc93e06878d5a0204190833153a8b" name="aeeddc93e06878d5a0204190833153a8b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>Key_B</b>&#160;&#160;&#160;15</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 id="header-func-members" class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a1ae5e1b9954a0aa410f5e480f3a000b9" id="r_a1ae5e1b9954a0aa410f5e480f3a000b9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_r_c__ctrl__t.html">RC_ctrl_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1ae5e1b9954a0aa410f5e480f3a000b9">RemoteControlInit</a> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *rc_usart_handle)</td></tr>
<tr class="memdesc:a1ae5e1b9954a0aa410f5e480f3a000b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化遥控器,该函数会将遥控器注册到串口  <br /></td></tr>
<tr class="memitem:acfec81351f882dc5d2a47ad94684d834" id="r_acfec81351f882dc5d2a47ad94684d834"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#acfec81351f882dc5d2a47ad94684d834">RemoteControlIsOnline</a> ()</td></tr>
<tr class="memdesc:acfec81351f882dc5d2a47ad94684d834"><td class="mdescLeft">&#160;</td><td class="mdescRight">检查遥控器是否在线,若尚未初始化也视为离线  <br /></td></tr>
</table>
<a name="details" id="details"></a><h2 id="header-details" class="groupheader">Detailed Description</h2>
<div class="textblock"><p>遥控器模块定义头文件 </p>
<dl class="section author"><dt>Author</dt><dd>DJI 2016 </dd>
<dd>
modified by neozng </dd></dl>
<dl class="section version"><dt>Version</dt><dd>beta </dd></dl>
<dl class="section date"><dt>Date</dt><dd>2022-11-01</dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (c) 2016 DJI corp </dd>
<dd>
Copyright (c) 2022 HNU YueLu EC all rights reserved </dd></dl>
</div><a name="doc-define-members" id="doc-define-members"></a><h2 id="header-doc-define-members" class="groupheader">Macro Definition Documentation</h2>
<a id="a0c177888ad36ad913ccc7ae75bf00d6a" name="a0c177888ad36ad913ccc7ae75bf00d6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c177888ad36ad913ccc7ae75bf00d6a">&#9670;&#160;</a></span>switch_is_down</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define switch_is_down</td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>s</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">(s == RC_SW_DOWN)</div>
</div><!-- fragment -->
</div>
</div>
<a id="aa46da519169b1d7b4bd35d61811cd7e4" name="aa46da519169b1d7b4bd35d61811cd7e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa46da519169b1d7b4bd35d61811cd7e4">&#9670;&#160;</a></span>switch_is_mid</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define switch_is_mid</td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>s</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">(s == RC_SW_MID)</div>
</div><!-- fragment -->
</div>
</div>
<a id="abae573966e94400154a74415acb93b57" name="abae573966e94400154a74415acb93b57"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abae573966e94400154a74415acb93b57">&#9670;&#160;</a></span>switch_is_up</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define switch_is_up</td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>s</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">(s == RC_SW_UP)</div>
</div><!-- fragment -->
</div>
</div>
<a name="doc-func-members" id="doc-func-members"></a><h2 id="header-doc-func-members" class="groupheader">Function Documentation</h2>
<a id="a1ae5e1b9954a0aa410f5e480f3a000b9" name="a1ae5e1b9954a0aa410f5e480f3a000b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ae5e1b9954a0aa410f5e480f3a000b9">&#9670;&#160;</a></span>RemoteControlInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_r_c__ctrl__t.html">RC_ctrl_t</a> * RemoteControlInit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *</td>          <td class="paramname"><span class="paramname"><em>rc_usart_handle</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>初始化遥控器,该函数会将遥控器注册到串口 </p>
<dl class="section attention"><dt>Attention</dt><dd>注意分配正确的串口硬件,遥控器在C板上使用USART3 </dd></dl>

</div>
</div>
<a id="acfec81351f882dc5d2a47ad94684d834" name="acfec81351f882dc5d2a47ad94684d834"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acfec81351f882dc5d2a47ad94684d834">&#9670;&#160;</a></span>RemoteControlIsOnline()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t RemoteControlIsOnline </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>检查遥控器是否在线,若尚未初始化也视为离线 </p>
<dl class="section return"><dt>Returns</dt><dd>uint8_t 1:在线 0:离线 </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="page-nav" class="page-nav-panel">
<div id="page-nav-resize-handle"></div>
<div id="page-nav-tree">
<div id="page-nav-contents">
</div><!-- page-nav-contents -->
</div><!-- page-nav-tree -->
</div><!-- page-nav -->
</div><!-- container -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a href="dir_e05d7e2b1ecd646af5bb94391405f3b5.html">modules</a></li><li class="navelem"><a href="dir_87fe5fb972cf461c5270ad2e1844e37f.html">remote</a></li><li class="navelem"><a href="remote__control_8h.html">remote_control.h</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.14.0 </li>
  </ul>
</div>
</body>
</html>
